<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<style type="text/css">
	.advice{
		width:100px;
		text-overflow:ellipsis;
		white-space:nowrap;
		overflow:hidden;
	}
</style>
<div class="table-responsive">
	<table class="cntable table table-bordered dataTable table-customer ">
		<thead>
			<tr>
				<th style="width:50px">序号</th>
				<th style="width:50px">反馈人姓名</th>
				<th style="width:50px">联系方式</th>
				<th style="width:100px">反馈内容</th>
				<th style="width:50px">反馈日期</th>
				<th style="width:50px">反馈状态</th>
				<th style="width:50px">处理人</th>
				<th style="width:50px">处理日期</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="adviceFeedback" items="${adviceFeedbacks}" varStatus="status">
				<tr data-id="${adviceFeedback.id}">
					<td>${status.index+1}</td>
					<td>${adviceFeedback.adviceName}</td>
					<td>${adviceFeedback.contact}</td>	
					<td><div class="advice" title="${adviceFeedback.advice}">${adviceFeedback.advice}</div></td>	
					<td>
						<fmt:formatDate value="${adviceFeedback.createDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
					<td>
					    <t:provider packageName="cust" enumClassName="AdviceStatus" value="${adviceFeedback.advicestate}"/>  
					</td>
					<td>${adviceFeedback.name}</td>
					<td>
					    <fmt:formatDate value="${adviceFeedback.modifyDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
				</tr>
			</c:forEach>
		</tbody>
		<tfoot>
			<tr>
				<th class="pager-th absolute-pos">
					<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
				</th>
			</tr>
		</tfoot>
	</table>
</div>